<?
require '../home/config.php';
$check_url_path = preg_match("@^/([^/]*).html$@" , '/bai-viet-1.html', $regs);
echo $check_url_path;
if ($check_url_path!=0){	
   dump($regs);
}
die;
echo preg_match("@^/bai-viet/$@" , "/bai-viet/",$arr);
dump($arr);die;
echo preg_match("@^/bai-viet/([^/]*).html$@" , "/bai-viet/bai-viet-dau-tien.html",$arr);
dump($arr);die;

      //$check_url_path = eregi("tags\/(.*)$" , "tags/Việt+Nam", $regs);
//      if ($check_url_path!==false){	
//         echo "tags";	echo '<br />';		
//         echo $regs[1];
//      }

?>
<html>
<head>
<title>Test</title>
</head>
<body>
<form action="http://localhost:5009/test/index.php" method="POST">
   <input type="text" name="name" value="" />
   <input type="submit" name="submit" />
</form>
</body>
</html>